
    function callPay(order_id) {
        $.post(pay_url,{order_id:order_id},function (result) {
            if(result.code == 200){
                layer.closeAll();
                layer.open({
                    content:result.message,
                    skin: 'msg',
                    time: 2,
                    end: function(elem){
                        window.location.href = order_list_url;
                    }
                });

            }else{
                layer.closeAll();
                layer.open({
                    content:result.message,
                    skin: 'msg',
                    time: 2,
                    end: function(elem){
                        window.location.href = order_list_url;
                    }
                });
            }
        });
    }
